package org.za.communication.message;

import org.apache.mina.core.buffer.IoBuffer;
import org.za.communication.core.util.ZipUtil;

public class GetListFromSer extends BaseMessage{
	public GetListFromSer() {
		super();
		this.msgId = 0x04;
	}

	private int type;
	
	

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@Override
	public IoBuffer getData() {
		try {
			buf = IoBuffer.allocate(2).setAutoExpand(true);
			buf.putUnsignedShort(this.getMsgId());
			buf.putInt(type);
			buf.flip();
			return buf;
		} catch (Exception e) {
			return null;
		}
	}

	@Override
	public void setData(IoBuffer buf) {
		// TODO Auto-generated method stub
		
	}

}
